import request from '@/utils/request'

export function listmmHead(query) {
  return request({
    url: '/maintain/mmHead/list',
    method: 'get',
    params: query
  })
}

export function createmmHead(data) {
  return request({
    url: '/maintain/mmHead/create',
    method: 'post',
    data
  })
}

export function readmmHead(data) {
  return request({
    url: '/maintain/mmHead/get/' + data.id,
    method: 'get'
  })
}

export function updatemmHead(data) {
  return request({
    url: '/maintain/mmHead/update',
    method: 'post',
    data
  })
}

export function deletemmHead(data) {
  return request({
    url: '/maintain/mmHead/delete',
    method: 'post',
    data
  })
}


export function getFmmlevel(data) {
  return request({
    url: '/data/area/getFmmlevel',
    method: 'get',
    params: data
  })
}
